import {
  createEditRender,
  createExportMethod,
  createFormItemRender,
  getCellLabelVNs,
  getTimePickerCellValue
} from "../pluginUtils";
import {RendererMapOptions} from "vxe-table/types/v-x-e-table/renderer";

const value: RendererMapOptions = {
  renderEdit: createEditRender(),
  renderCell(h, renderOpts, params) {
    return getCellLabelVNs(h, renderOpts, params, getTimePickerCellValue(renderOpts, params))
  },
  renderItem: createFormItemRender(),
  renderItemContent: createFormItemRender(),
  cellExportMethod: createExportMethod(getTimePickerCellValue),
  exportMethod: createExportMethod(getTimePickerCellValue)
}
export default value
